/**
 * @projectName: com.xiayuanxing.designPattern
 * @className: Colleague
 * @author: xiayuanxing
 * @description: 同事抽象类
 * @date: 2022/1/10 16:13
 * @version: 1.0
 */
public abstract class Colleague {

    private Mediator mediator;

    public String name;

    public Colleague(Mediator mediator, String name) {
        this.mediator = mediator;
        this.name = name;
    }

    public Mediator getMediator() {
        return this.mediator;
    }

    public abstract void SendMessage(int stateChange);
}
